<?php

use Illuminate\Database\Seeder;
use App\Models\Prize;

class PrizesTableSeeder extends Seeder
{
    public function run()
    {
        $prizes = factory(Prize::class)
                        ->times(1000)
                        ->make();


        // 将数据集合转换为数组，并插入到数据库中
        Prize::insert($prizes->toArray());
    }

}

